<template>
  <div class='product-intro' v-html="content">
  </div>
</template>
<script>
export default {
  components: {},
  name: "",
  data() {
    return {
        content:""
    };
  },
  methods: {
//获取商品详情
      getProductInfo(id){
          _g.apiPost('product/productInfo.do',{id:id}).then(res=>{
              if(res.status==0){
                  this.$set(this,"content",res.data.detail)
              }else {
                  _g.toMessage(res)
              }
          })
      },
  },
  created() {
      let id = this.$router.history.current.query.id
      this.getProductInfo(id)

  }
};
</script>
<style lang="scss" scoped>
.product-intro {
  padding: 20px 0;
}
</style>